<template>
  <div>我是一级路由Home</div>
  <h1>{{ userStore.username }}</h1>
  <p>{{ userStore.testMsg }}</p>
</template>
<script setup lang="ts">
import useUserStore from '@/store/modules/user'
import { onMounted, ref, watch } from 'vue'
let userStore = useUserStore()
watch(
  () => {
    userStore.accessToken
  },
  async () => {
    await userStore.testMulti()
  },
  { immediate: true },
)
</script>
<style scoped lang="scss"></style>
